#include <iostream>
#include <nlohmann/json.hpp>

using json = nlohmann::json;

int main()
{
    nlohmann::ordered_json json_data;
    json_data["orient"] = nlohmann::json::array({{{"x", 1}, {"y", 2}, {"theta", 3}}, {{"x", 1}, {"y", 2}, {"theta", 3}}});

    std::cout << json_data << '\n';
    // nlohmann::json orient;
    // orient["x"]     = target_elv_.mark.direction.orient[0].x;
    // orient["y"]     = target_elv_.mark.direction.orient[0].y;
    // orient["theta"] = target_elv_.mark.direction.orient[0].theta;

    // json_data["data"]["mark"]["direction"]["orient"][0] = orient;
    // json_data["data"]["mark"]["direction"]["orient"][1] = {{"x", target_elv_.mark.direction.orient[1].x}, {"y", target_elv_.mark.direction.orient[1].y}, {"theta",
    // target_elv_.mark.direction.orient[1].theta}};
}
